const App = {
  mixins: [Query],//配置文件，路径/utils/mixins.js
  data() {
    return {
      photo,
      page: {
        value1: '',
        PageNumber: 1, //页码
        RowAmount: 10,
        Condition: window.btoa(unescape(encodeURIComponent("%%"))),
        ExtensionCondition: ''
      },
    }
  },
  mounted() {

  },
  methods: {
    check() {
      this.page.Condition = window.btoa(unescape(encodeURIComponent("%" + this.page.value1 + "%")));
      this.postgetList(this.page)
    },
    Rights(row) {
      window.location.href = "./rights.html?nodeKey=" + row.User_Number;
    },
    personalAdd() {
      sessionStorage.setItem("type", "add");
      window.location.href = "./add.html";
    },
    handleEdit(row){
      sessionStorage.setItem("type",'Edit');
      sessionStorage.setItem("User_Number", row.User_Number);
      window.location.href = "./add.html";
    }
  },
};

const { createApp } = Vue;
const app = createApp(App);
//这种方式是引入全部图标，无需单个引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.component('yl-house-grid', ylHouseGrid);
const ElMessage = ElementPlus.ElMessage;
app.use(ElementPlus, { locale: zhCn });
app.mount("#app");
